package com.plian.system.entity.hr.staff;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.plian.Tools.DateUtil;
import com.plian.system.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 工作经历实体类
 *
 * @author gangan
 * @since 2019-09-30
 */
@Data
@TableName("hr_work_experience")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "工作经历", description = "工作经历")
public class WorkExperience extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主表主键
     */
    @ApiModelProperty(value = "工作经历")
    private Long staffFilesId;
    /**
     * 开始日期
     */
    @DateTimeFormat(pattern = DateUtil.PATTERN_MONTH)
    @JsonFormat(pattern = DateUtil.PATTERN_MONTH)
    @ApiModelProperty(value = "开始日期")
    private Date startDate;
    /**
     * 结束日期
     */
    @DateTimeFormat(pattern = DateUtil.PATTERN_MONTH)
    @JsonFormat(pattern = DateUtil.PATTERN_MONTH)
    @ApiModelProperty(value = "结束日期")
    private Date endDate;
    /**
     * 工作单位
     */
    @ApiModelProperty(value = "工作单位")
    private String workUnit;
    /**
     * 职务
     */
    @ApiModelProperty(value = "职务")
    private String jobNameId;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;
    /**
     * 乐观锁字段
     */
    private Integer tsVersion;
    /**
     * 备用文本字段1
     */
    private String def1;
    /**
     * 备用文本字段2
     */
    private String def2;
    /**
     * 备用文本字段3
     */
    private String def3;
    /**
     * 备用文本字段4
     */
    private String def4;
    /**
     * 备用文本字段5
     */
    private String def5;
    /**
     * 备用文本字段6
     */
    private String def6;
    /**
     * 备用文本字段7
     */
    private String def7;
    /**
     * 备用文本字段8
     */
    private String def8;
    /**
     * 备用数字字段1
     */
    private BigDecimal def9;
    /**
     * 备用数字字段2
     */
    private BigDecimal def10;
    /**
     * 备用数字字段3
     */
    private BigDecimal def11;
    /**
     * 备用数字字段4
     */
    private BigDecimal def12;
    /**
     * 备用数字字段5
     */
    private BigDecimal def13;
    /**
     * 备用日期字段1
     */
    private Date def14;
    /**
     * 备用日期字段2
     */
    private Date def15;
    /**
     * 备用日期字段3
     */
    private Date def16;
    /**
     * 备用日期字段4
     */
    private Date def17;
    /**
     * 备用枚举字段1
     */
    private Long def18;
    /**
     * 备用枚举字段2
     */
    private Long def19;
    /**
     * 备用枚举字段3
     */
    private Long def20;

    /**
     * 数据来源 null为系统填报 对应用户id
     */
    @ApiModelProperty(value = "数据来源 null为系统填报 对应用户id")
    private String dataSource;

    /**
     * 数据来源id
     */
    @ApiModelProperty(value = "数据来源id", required = true)
    private String dataSourceId;


}
